// CntrItem.h : interface of the CRichCntrItem class
//

#pragma once

namespace EditRich
{

class CRichDoc;
class CRichView;

class CRichCntrItem : public CRichEditCntrItem
{
	DECLARE_SERIAL(CRichCntrItem)

// Constructors
public:
	CRichCntrItem(REOBJECT* preo = NULL, CRichDoc* pContainer = NULL);
		// Note: pContainer is allowed to be NULL to enable IMPLEMENT_SERIALIZE
		//  IMPLEMENT_SERIALIZE requires the class have a constructor with
		//  zero arguments.  Normally, OLE items are constructed with a
		//  non-NULL document pointer

// Attributes
public:
	CRichDoc* GetDocument()
		{ return reinterpret_cast<CRichDoc*>(CRichEditCntrItem::GetDocument()); }
	CRichView* GetActiveView()
		{ return reinterpret_cast<CRichView*>(CRichEditCntrItem::GetActiveView()); }

	public:
	protected:

// Implementation
public:
	~CRichCntrItem();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif
};
};

